#include "circle.h"


Circle::Circle(double r) {
	if (r < 0.0) r = 1.0;
	this->r = r;
}

void Circle::set_r(double r) {
	if (r < 0.0) r = 1.0;
	this->r = r;
}
double Circle::get_r() {
	return r;
}

double Circle::get_S() {
	return r * r * PI;
}
double Circle::get_C() {
	return 2 * r * PI;
}